import { post, postWithLoadTip, postSync } from '@/utils/request';

//企业宣传类别字典
export function list(): any {
  return post(`/pxks-api/publicity/archive/list`, undefined);
}
//企业宣传分页
export function page(data: any): any {
  return post(`/pxks-api/publicity/page`, data);
}
//企业宣传详情
export function select(id: any): any {
  return post(`/pxks-api/publicity/select/${id}`, undefined);
}
//观看企业宣传课件时长统计
export function start(id: any): any {
  return postSync(`/pxks-api/publicity/start/${id}`, undefined);
}

//企业宣传统计信息
export function info(id: any): any {
  return post(`/pxksgl-api/publicity/course/detailForUser/${id}`, undefined);
}
//企业宣传统计导出
export function userExport(data: any): any {
  return postWithLoadTip(
    `/pxksgl-api/publicity/course/detailForUser/export`,
    data
  );
}
//企业宣传统计用户列表
export function userPage(data: any): any {
  return postWithLoadTip(
    `/pxksgl-api/publicity/course/detailForUser/page`,
    data
  );
}
//企业宣传统计课件列表
export function userCourseWarePage(data: any): any {
  return postWithLoadTip(
    `/pxksgl-api/publicity/course/detailForUser/course/ware/page`,
    data
  );
}
